//
//  PhotoTextureController.h
//  FlutterPluginExp
//
//  Created by BqLin on 2020/10/16.
//  Copyright © 2020 BqLin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
#import <Photos/Photos.h>

@class PhotoFrameUpdater;

@interface PhotoTextureController : NSObject <FlutterTexture>

@property (nonatomic, strong, readonly) PhotoFrameUpdater *frameUpdater;

- (instancetype)initWithAsset:(PHAsset *)asset frameUpdater:(PhotoFrameUpdater *)frameUpdater;

- (void)requestImage:(PHImageManager *)manager width:(int)width height:(int)height completion:(void (^)(BOOL success))completion;

- (void)dispose;
@end
